package com.anjufang.mapper;

import com.anjufang.entity.SourceHouse;
import com.anjufang.entity.SourceUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 导入-房源数据 Mapper 接口
 * </p>
 *
 * @author wcy
 * @since 2021-11-04
 */
public interface SourceHouseMapper extends BaseMapper<SourceHouse> {

    List<SourceHouse> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    @Update("UPDATE source_house SET is_deleted = 1 WHERE is_deleted = 0")
    int deleteAll();

}